package com.zhuhjay.eduservice.mapper;

import com.zhuhjay.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuhjay.eduservice.entity.frontvo.CourseWebVo;
import com.zhuhjay.eduservice.entity.vo.CoursePublishVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author ZhuHJay
 * @since 2022-09-06
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 获取多表信息
     * @param courseId
     * @return
     */
    CoursePublishVo getCoursePublish(String courseId);

    /**
     * 多表查询，获得详细信息
     * @param id
     * @return
     */
    CourseWebVo getCourseAllInfo(String id);
}
